package springboot.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import springboot.domain.StudentReportRepair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springboot.service.ReportRepairService;

@RestController
@RequestMapping("/student")
public class StudentController {
    @Autowired
    private ReportRepairService reportRepairService;
    @PostMapping("/ReportRepairStudentReport")
    @RequiresPermissions("StudentReport:post")
    public String ReportRepairStudentReport(@RequestBody StudentReportRepair studentReportRepair) {
        reportRepairService.studentReportRepair(studentReportRepair);
        return "提交申请成功，请等待审核";
    }
}
